package com.imay.live.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by nick on 2017/7/24.
 */

public class MusicModel {


    //0:未下载, 1下载中 2:已下载,3:被选中
    public static final int STATU_NO_DOWNLOAD=0;
    public static final int STATU_DOWNLOADING=1;
    public static final int STATU_DOWNLOADED=2;
    public static final int STATU_SELECTED =3;


    private String image;
    private int musicId;
    private int musicLabelId;
    private String musicLabel;
    private String musicUrl;
    private String name;
    private String singer;
    private int statu;
    private long downLoadId;
    private int updateTime;
    private boolean isPlaying;

    public long getDownLoadId() {
        return downLoadId;
    }

    public void setDownLoadId(long downLoadId) {
        this.downLoadId = downLoadId;
    }

    public int getStatu() {
        return statu;
    }

    public void setStatu(int statu) {
        this.statu = statu;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getMusicId() {
        return musicId;
    }

    public void setMusicId(int musicId) {
        this.musicId = musicId;
    }

    public int getMusicLabelId() {
        return musicLabelId;
    }

    public void setMusicLabelId(int musicLabelId) {
        this.musicLabelId = musicLabelId;
    }

    public String getMusicLabel() {
        return musicLabel;
    }

    public void setMusicLabel(String musicLabel) {
        this.musicLabel = musicLabel;
    }

    public String getMusicUrl() {
        return musicUrl;
    }

    public void setMusicUrl(String musicUrl) {
        this.musicUrl = musicUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isPlaying() {
        return isPlaying;
    }

    public void setPlaying(boolean playing) {
        isPlaying = playing;
    }

    public String getMucicName (){
        StringBuffer buffer  = new StringBuffer();
        buffer.append(musicId);
        buffer.append("_");
        buffer.append(updateTime);
        buffer.append(".mp3");
        return buffer.toString();
    }

    public static String getMucicName (int id,int time){
        StringBuffer buffer  = new StringBuffer();
        buffer.append(id);
        buffer.append("_");
        buffer.append(time);
        buffer.append(".mp3");
        return buffer.toString();
    }
}
